#ifndef WIDGETCALQUE_H
#define WIDGETCALQUE_H

#include <QDockWidget>
#include <QListWidgetItem>
#include <QPainter>
class MainWindow;

namespace Ui {
    class WidgetCalque;
}

class WidgetCalque : public QDockWidget
{
    Q_OBJECT

public:
    explicit WidgetCalque(QWidget *parent = 0);
    ~WidgetCalque();
    void reactu();

public slots:
    void toggleItem(QListWidgetItem* item);

private slots:
    void on_nouveau_clicked();
    void on_supprimer_clicked();
    void on_spinBox_valueChanged(int );

    void on_pushButton_clicked();

    void on_pushButton_2_clicked();

private:
    Ui::WidgetCalque *ui;
    MainWindow* mw;

    void paintEvent(QPaintEvent *);
    void addOp(QPainter::CompositionMode mode, const QString &name);


};

#endif // WIDGETCALQUE_H
